﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BuildOptimizer
{
    class BoQueen
    {
        private float _energy = 0.0f;
        public float energy
        {
            get
            {
                return _energy;
            }
        }
        
        public BoQueen()
        {
            _energy = 25.0f;
        }
        private BoQueen(BoQueen queen)
        {
            _energy = queen._energy;
        }
        public BoQueen clone()
        {
            return new BoQueen(this);
        }
        
        public void updateEnergy()
        {
            _energy += 0.5625f;
            _energy = (_energy > 200.0f) ? 200.0f : _energy;
        }
        public void removeEnergy(float delta)
        {
            _energy -= delta;
        }
    }
}
